<?php

use yii\db\Schema;
use yii\db\Migration;

class m160311_082830_add_media_channel_map_id_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%media_channel}}',  'map_id', 'varchar(128) not null default "1" comment "channel_adnetwork_media_id_map primary key list, seperated by common(,)" after media_name');
    }

    public function down()
    {
        return $this->dropColumn('{{%media_channel}}', 'map_id');
    }
}
